<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head> 
        <title>Facelet Title</title>
        <h:outputStylesheet name="css/jsfcrud.css"/>
    </h:head>
    <center>
        <h:body id="login" styleClass="login" title="login">
            <br/><br/><br/><br/><br/><br/><br/><br/>
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateUserLabel_username}" for="username" />
                    <h:inputText id="username" value="#{userController.username}" title="#{bundle.CreateUserTitle_username}" required="true" requiredMessage="#{bundle.CreateUserRequiredMessage_username}"/>
                    <h:outputLabel value="#{bundle.CreateUserLabel_password}" for="password" />
                    <h:inputSecret id="password" value="#{userController.password}" title="#{bundle.CreateUserTitle_password}" required="true" requiredMessage="#{bundle.CreateUserRequiredMessage_password}"/>
                </h:panelGrid>
                <br />
                <h:commandButton action="#{userController.doLogin}" value="#{bundle.Login}" />
                <br />
                <br />
            </h:form>
            <h:form>
                <h:commandLink action="#{userController.prepareCreateClient}" value="create client" /><br />
                <h:commandLink action="#{userController.prepareCreateAgent}" value="create agent" /><br />
                <h:commandLink action="#{userController.prepareCreateOwner}" value="create owner" />
            </h:form>
        </h:body>
    </center>
</html>
